package com.bainc.web.shared.types;

import com.google.gwt.user.client.rpc.IsSerializable;

public class Name implements IsSerializable {
	private String first = "";
	private String middle = "";
	private String last = "";
	
	public Name() {
	}
	
	public Name(String first) {
		this.setFirst(first);
	}

	public void setFirst(String first) {
		this.first = first;
	}

	public String getFirst() {
		return first;
	}

	public void setMiddle(String middle) {
		this.middle = middle;
	}

	public String getMiddle() {
		return middle;
	}

	public void setLast(String last) {
		this.last = last;
	}

	public String getLast() {
		return last;
	}
	
	public String toString() {
		String summary = first + ", " + middle + ", " + last;
		return summary;
	}
}
